package com.ciquan.server.dao;

import com.ciquan.server.bean.Message;
import com.ciquan.server.bean.UnReply;

import java.util.List;
import java.util.Map;

/**
 * Created by bjliwei2014 on 2015/2/27.
 */
public interface MessageMapper {

    List<Integer> selectWorks();

    List<Integer> selectUsers(Map<String, Object> map);

    List<Message> selectReceiveUsers(Map<String, Object> map);

    List<Message> selectMessage(Map<String, Object> map);

    List<Message> selectUserMessage(Integer userId);

    Message selectLastMessage(Map<String, Object> map);

    int unRead(Map<String, Object> map);

    List<UnReply> unReply(Map<String, Object> map);
}
